<?
if($_SESSION['memberID']!=23444  && $_SESSION['sdtype']!=9&&$_SESSION['sid']!=1){
exit("<script>window.location='home.html'</script>");
}
?>
<title>账户充值</title>
<link rel="stylesheet" type="text/css" href="css/accourt.css"/>
<link rel="stylesheet" type="text/css" href="css/jump.css"/>
<script src="js/ui/PopWindow.js"></script>
<script type="text/javascript">
var popBox=new PopWindow();
$(document).ready(function(){
    $("#dname").blur(function(){
        var name=$("#dname").val();
        if(name!=""){
            window.location='offlineRecharge.html?dname='+name;
        }
    });
    $("#btn").click(function(){
        var name=$("#dname").val();
        window.location='offRechaTrecord.html?dname='+name;
    });
})
function sub(){
	var money=$("#ali_money").val();
    var dname=$("#dname").val();
    if(!dname){
        alert('请输入充值账号');
        return false;
    }
	if(!money){
		alert('请输入金额');
		return false;
	}
	if(isNaN(money)){
		alert('请输入正确的金额!');
		return false;
	}
    if(!confirm('陈燕!!你确定要给'+dname+'充值'+money+'元钱吗??想想清楚啊!!充了就回不去了!!不要怪我老程没有提醒你啊!!'))
        return false;
	document.forms["offlinerecharge"].submit();
}
</script>
<style type="text/css">
#PopWindow{ text-align:left; border:8px solid #767576; padding:20px;}
#PopWindow p{margin-bottom:5px; border-bottom:1px solid #666; padding-bottom:5px;}
#PopWindow p i{ display:inline-block; width:15px; margin-bottom:1.5px; margin-right:3px; background:url(http://csf.16u.cc/images/un_card.png) left bottom no-repeat;}
#PopWindow strong{ font-weight:bold; color:#000;}
#PopWindow .pay{margin:10px; text-align:center;}
#PopWindow .pay input{padding:5px 10px; margin-right:20px; cursor:pointer; font-size:12px; }
#PopWindow .loading{ background: url("http://www.16u.cc/biz/images/ajax_loader_bar.gif") no-repeat scroll center center transparent; height: 80px; width: 180px;}
#btn {padding-left:30px;}
#tta {width:300px;height:100px;}
</style>
<div class="r_content">
	<?include("account_bar.tpl")?>
<!--<div class="accourt_title">
	<ul>
		<li class="<?=basename($_SERVER['PHP_SELF'])=="recharge.html"?"acct":""?>">线下充值</li>
	</ul>
</div>-->
	<div class="fcontent">
		<div class="ali_charge current">
			
			<form action="call/offlineRecharge.php" target="_blank" method="post" name="offlinerecharge" >
                <input type="hidden" name="did" value="<?=$id?>">
                <input type="hidden" name="act" value="z">
				<p>
					<label>充值账号：</label>
                    <input type="text" id="dname" class="inputT moneyT" name="dname" placeholder="账号名称/账号ID" value="<?=$dname?>">
                    <span  id="btn"><input type="button" value="充值记录"></span>
                </p>
				<p>
					<label>账户余额：</label>
					<span class="inputT moneyT" ><?=$lmoney?><font color="red">(元)</font>
				</p>
				<p>
					<label>充值金额：</label>
					<input type="text" class="inputT moneyT" name="tmoney" value="1000" id="ali_money">
					<strong>元</strong><span class="greyb">金额格式：666.66</span>
				</p>
                <p>
					<label>备注：</label>
					<textarea id='tta' type="text" class="inputT moneyT" name="beizhu"></textarea>
				</p>
				<p style=" padding-bottom:30px;">
					<label>&nbsp;</label>
					<input type="button" onclick="sub()" class="submit" value="线下充值" >
				</p>
			</form>
		</div>
	</div>
	<div  class="tips">
		<h4>关于充值：</h4>
		<p>
		1.充值金额将体现在“账户余额”中。。</br>
		2.充值余额可用于分销平台购买分销商品。</br>
		</p>
	</div>
</div>